3.1.21 \(\int \frac {(a+b \log (c x^n))^3 \log (1+e x)}{x} \, dx\) [21]

3.1.21.1 Optimal result
3.1.21.2 Mathematica [A] (verified)
3.1.21.3 Rubi [A] (verified)
3.1.21.4 Maple [C] (warning: unable to verify)
3.1.21.5 Fricas [F]
3.1.21.6 Sympy [F(-1)]
3.1.21.7 Maxima [F]
3.1.21.8 Giac [F]
3.1.21.9 Mupad [F(-1)]

3.1.21.1 Optimal result

Integrand size = 22, antiderivative size = 81 \[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=-\left (a+b \log \left (c x^n\right )\right )^3 \operatorname {PolyLog}(2,-e x)+3 b n \left (a+b \log \left (c x^n\right )\right )^2 \operatorname {PolyLog}(3,-e x)-6 b^2 n^2 \left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}(4,-e x)+6 b^3 n^3 \operatorname {PolyLog}(5,-e x) \]

output
-(a+b*ln(c*x^n))^3*polylog(2,-e*x)+3*b*n*(a+b*ln(c*x^n))^2*polylog(3,-e*x) 
-6*b^2*n^2*(a+b*ln(c*x^n))*polylog(4,-e*x)+6*b^3*n^3*polylog(5,-e*x)
 
3.1.21.2 Mathematica [A] (verified)

Time = 0.08 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.95 \[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=-\left (a+b \log \left (c x^n\right )\right )^3 \operatorname {PolyLog}(2,-e x)+3 b n \left (\left (a+b \log \left (c x^n\right )\right )^2 \operatorname {PolyLog}(3,-e x)+2 b n \left (-\left (\left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}(4,-e x)\right )+b n \operatorname {PolyLog}(5,-e x)\right )\right ) \]

input
Integrate[((a + b*Log[c*x^n])^3*Log[1 + e*x])/x,x]
 
output
-((a + b*Log[c*x^n])^3*PolyLog[2, -(e*x)]) + 3*b*n*((a + b*Log[c*x^n])^2*P 
olyLog[3, -(e*x)] + 2*b*n*(-((a + b*Log[c*x^n])*PolyLog[4, -(e*x)]) + b*n* 
PolyLog[5, -(e*x)]))
 
3.1.21.3 Rubi [A] (verified)

Time = 0.40 (sec) , antiderivative size = 77, normalized size of antiderivative = 0.95, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2821, 2830, 2830, 7143}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\log (e x+1) \left (a+b \log \left (c x^n\right )\right )^3}{x} \, dx\)

\(\Big \downarrow \) 2821

\(\displaystyle 3 b n \int \frac {\left (a+b \log \left (c x^n\right )\right )^2 \operatorname {PolyLog}(2,-e x)}{x}dx-\operatorname {PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )^3\)

\(\Big \downarrow \) 2830

\(\displaystyle 3 b n \left (\operatorname {PolyLog}(3,-e x) \left (a+b \log \left (c x^n\right )\right )^2-2 b n \int \frac {\left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}(3,-e x)}{x}dx\right )-\operatorname {PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )^3\)

\(\Big \downarrow \) 2830

\(\displaystyle 3 b n \left (\operatorname {PolyLog}(3,-e x) \left (a+b \log \left (c x^n\right )\right )^2-2 b n \left (\operatorname {PolyLog}(4,-e x) \left (a+b \log \left (c x^n\right )\right )-b n \int \frac {\operatorname {PolyLog}(4,-e x)}{x}dx\right )\right )-\operatorname {PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )^3\)

\(\Big \downarrow \) 7143

\(\displaystyle 3 b n \left (\operatorname {PolyLog}(3,-e x) \left (a+b \log \left (c x^n\right )\right )^2-2 b n \left (\operatorname {PolyLog}(4,-e x) \left (a+b \log \left (c x^n\right )\right )-b n \operatorname {PolyLog}(5,-e x)\right )\right )-\operatorname {PolyLog}(2,-e x) \left (a+b \log \left (c x^n\right )\right )^3\)

input
Int[((a + b*Log[c*x^n])^3*Log[1 + e*x])/x,x]
 
output
-((a + b*Log[c*x^n])^3*PolyLog[2, -(e*x)]) + 3*b*n*((a + b*Log[c*x^n])^2*P 
olyLog[3, -(e*x)] - 2*b*n*((a + b*Log[c*x^n])*PolyLog[4, -(e*x)] - b*n*Pol 
yLog[5, -(e*x)]))
 

3.1.21.3.1 Defintions of rubi rules used

rule 2821
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b 
_.))^(p_.))/(x_), x_Symbol] :> Simp[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c 
*x^n])^p/m), x] + Simp[b*n*(p/m)   Int[PolyLog[2, (-d)*f*x^m]*((a + b*Log[c 
*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 
0] && EqQ[d*e, 1]
 

rule 2830
Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_ 
.)])/(x_), x_Symbol] :> Simp[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^p/q) 
, x] - Simp[b*n*(p/q)   Int[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^(p - 
1)/x), x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]
 

rule 7143
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S 
ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d 
, e, n, p}, x] && EqQ[b*d, a*e]
 
3.1.21.4 Maple [C] (warning: unable to verify)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 12.06 (sec) , antiderivative size = 605, normalized size of antiderivative = 7.47

method result size
risch \(\ln \left (x \right )^{3} \operatorname {dilog}\left (e x +1\right ) b^{3} n^{3}-\ln \left (x \right )^{3} \operatorname {Li}_{2}\left (-e x \right ) b^{3} n^{3}-3 \ln \left (x \right )^{2} \ln \left (x^{n}\right ) \operatorname {dilog}\left (e x +1\right ) b^{3} n^{2}+3 \ln \left (x \right )^{2} \ln \left (x^{n}\right ) \operatorname {Li}_{2}\left (-e x \right ) b^{3} n^{2}+3 \ln \left (x \right ) \ln \left (x^{n}\right )^{2} \operatorname {dilog}\left (e x +1\right ) b^{3} n -3 \ln \left (x \right ) \ln \left (x^{n}\right )^{2} \operatorname {Li}_{2}\left (-e x \right ) b^{3} n -\ln \left (x^{n}\right )^{3} \operatorname {dilog}\left (e x +1\right ) b^{3}+3 \ln \left (x^{n}\right )^{2} \operatorname {Li}_{3}\left (-e x \right ) b^{3} n -6 \ln \left (x^{n}\right ) \operatorname {Li}_{4}\left (-e x \right ) b^{3} n^{2}+6 b^{3} n^{3} \operatorname {Li}_{5}\left (-e x \right )-\frac {{\left (-i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )+i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+2 b \ln \left (c \right )+2 a \right )}^{3} \operatorname {dilog}\left (e x +1\right )}{8}+\frac {3 \left (-i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )+i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+2 b \ln \left (c \right )+2 a \right ) b^{2} \left (-{\left (\ln \left (x^{n}\right )-n \ln \left (x \right )\right )}^{2} \operatorname {dilog}\left (e x +1\right )+n^{2} \left (-\ln \left (x \right )^{2} \operatorname {Li}_{2}\left (-e x \right )+2 \ln \left (x \right ) \operatorname {Li}_{3}\left (-e x \right )-2 \,\operatorname {Li}_{4}\left (-e x \right )\right )+2 n \left (\ln \left (x^{n}\right )-n \ln \left (x \right )\right ) \left (-\ln \left (x \right ) \operatorname {Li}_{2}\left (-e x \right )+\operatorname {Li}_{3}\left (-e x \right )\right )\right )}{2}+\frac {3 {\left (-i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )+i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+2 b \ln \left (c \right )+2 a \right )}^{2} b \left (-\left (\ln \left (x^{n}\right )-n \ln \left (x \right )\right ) \operatorname {dilog}\left (e x +1\right )-\ln \left (x \right ) \operatorname {Li}_{2}\left (-e x \right ) n +\operatorname {Li}_{3}\left (-e x \right ) n \right )}{4}\) \(605\)

input
int((a+b*ln(c*x^n))^3*ln(e*x+1)/x,x,method=_RETURNVERBOSE)
 
output
ln(x)^3*dilog(e*x+1)*b^3*n^3-ln(x)^3*polylog(2,-e*x)*b^3*n^3-3*ln(x)^2*ln( 
x^n)*dilog(e*x+1)*b^3*n^2+3*ln(x)^2*ln(x^n)*polylog(2,-e*x)*b^3*n^2+3*ln(x 
)*ln(x^n)^2*dilog(e*x+1)*b^3*n-3*ln(x)*ln(x^n)^2*polylog(2,-e*x)*b^3*n-ln( 
x^n)^3*dilog(e*x+1)*b^3+3*ln(x^n)^2*polylog(3,-e*x)*b^3*n-6*ln(x^n)*polylo 
g(4,-e*x)*b^3*n^2+6*b^3*n^3*polylog(5,-e*x)-1/8*(-I*b*Pi*csgn(I*c)*csgn(I* 
x^n)*csgn(I*c*x^n)+I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+I*b*Pi*csgn(I*x^n)*csg 
n(I*c*x^n)^2-I*b*Pi*csgn(I*c*x^n)^3+2*b*ln(c)+2*a)^3*dilog(e*x+1)+3/2*(-I* 
b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I*c*x^n)+I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+ 
I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2-I*b*Pi*csgn(I*c*x^n)^3+2*b*ln(c)+2*a)*b 
^2*(-(ln(x^n)-n*ln(x))^2*dilog(e*x+1)+n^2*(-ln(x)^2*polylog(2,-e*x)+2*ln(x 
)*polylog(3,-e*x)-2*polylog(4,-e*x))+2*n*(ln(x^n)-n*ln(x))*(-ln(x)*polylog 
(2,-e*x)+polylog(3,-e*x)))+3/4*(-I*b*Pi*csgn(I*c)*csgn(I*x^n)*csgn(I*c*x^n 
)+I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+I*b*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2-I*b* 
Pi*csgn(I*c*x^n)^3+2*b*ln(c)+2*a)^2*b*(-(ln(x^n)-n*ln(x))*dilog(e*x+1)-ln( 
x)*polylog(2,-e*x)*n+polylog(3,-e*x)*n)
 
3.1.21.5 Fricas [F]

\[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{3} \log \left (e x + 1\right )}{x} \,d x } \]

input
integrate((a+b*log(c*x^n))^3*log(e*x+1)/x,x, algorithm="fricas")
 
output
integral((b^3*log(c*x^n)^3*log(e*x + 1) + 3*a*b^2*log(c*x^n)^2*log(e*x + 1 
) + 3*a^2*b*log(c*x^n)*log(e*x + 1) + a^3*log(e*x + 1))/x, x)
 
3.1.21.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=\text {Timed out} \]

input
integrate((a+b*ln(c*x**n))**3*ln(e*x+1)/x,x)
 
output
Timed out
 
3.1.21.7 Maxima [F]

\[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{3} \log \left (e x + 1\right )}{x} \,d x } \]

input
integrate((a+b*log(c*x^n))^3*log(e*x+1)/x,x, algorithm="maxima")
 
output
integrate((b*log(c*x^n) + a)^3*log(e*x + 1)/x, x)
 
3.1.21.8 Giac [F]

\[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{3} \log \left (e x + 1\right )}{x} \,d x } \]

input
integrate((a+b*log(c*x^n))^3*log(e*x+1)/x,x, algorithm="giac")
 
output
integrate((b*log(c*x^n) + a)^3*log(e*x + 1)/x, x)
 
3.1.21.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\left (a+b \log \left (c x^n\right )\right )^3 \log (1+e x)}{x} \, dx=\int \frac {\ln \left (e\,x+1\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^3}{x} \,d x \]

input
int((log(e*x + 1)*(a + b*log(c*x^n))^3)/x,x)
 
output
int((log(e*x + 1)*(a + b*log(c*x^n))^3)/x, x)